home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
crt0
/
globtest.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-03-27
|
279 b
|
16 lines
#include <stdio.h>
#include <fnmatch.h>
#include <glob.h>
int
main(int argc, char **argv)
{
int i;
glob_t g;
printf("Pattern: `%s'\n", argv[1]);
glob(argv[1], 0, 0, &g);
for (i=0; i<g.gl_pathc; i++)
printf("-> `%s'\n", g.gl_pathv[i]);
return 0;
}